#ifndef COLORGAME_H
#define COLORGAME_H

#include <QLabel>
#include <QSlider>

#include <QColor>

#include <QDebug>

#include "games/basegame.h"

// ColorGame: guess the correct color
class ColorGame : public BaseGame
{
    Q_OBJECT
public:
    // Constructor
    explicit ColorGame(QWidget *parent = 0, int difflvl = 1);

    // Members
    bool isSolved() { if( obtained_color == requested_color ) return true; return false; }
    QString hint();

public slots:
    // Slots
    void onColorChanged();

private:
    // Color containers
    QColor requested_color;
    QColor obtained_color;

    // Labels, will be colored
    QLabel * obtained_color_label;
    QLabel * requested_color_label;

    // Sliders for RGB calibration
    QSlider * sliderR;
    QSlider * sliderG;
    QSlider * sliderB;
};

#endif // COLORGAME_H
